\documentclass[a4paper,fleqn,ignorenonframetext]{beamer}
%\documentclass[a4paper,fleqn]{beamer}
%\usepackage{beamerarticle}
\mode<article>{\usepackage{fullpage}}
%% List of themes:
% Berlin,Boadila,Montpellier
\mode<presentation>{\usetheme{Montpellier}}
\usetheme{Berlin}
\begin{document}
\input{chDynamicProgramming-content}
\end{document}
